package com.lsl.observer_pattern.example2.normal;

import com.lsl.observer_pattern.example2.WeatherType;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * description:
 *
 * @author: liushengli
 * data: 2023/1/13
 */
@Slf4j
public class Hobbits implements WeatherObserver {
    private static final Logger logger = LoggerFactory.getLogger(Hobbits.class);

    @Override
    public void update(WeatherType currentWeather) {
        logger.info("The hobbits are facing {} weather now", currentWeather.getDescription());
    }
}

